import request from '@/utils/request'
// 登录
export function login(data) {
  return request({
    url: '/index/login',
    method: 'POST',
    data
  })
}
// 获取用户资料
export function getInfo(token) {
  return request({
    url: '/index/userinfo',
    method: 'POST',
    params: { token }
  })
}
